Implement core::arch::return_address and tests#154972
Implement core::arch::return_address and tests#154972chorman0773 wants to merge 3 commits intorust-lang:mainfrom
core::arch::return_address and tests#154972Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Helpful comment, thanks rustbot 😐 |
There was a problem hiding this comment.
I'm not a huge fan of the doc comment's language. Could you try iterating on it a bit?
I think adding the cranelift implementation in this PR would also make sense (and maybe a gcc backend implementation -- not sure how easy that is?).
r=me with at least the comment fixed.
|
Reminder, once the PR becomes ready for a review, use |
|
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
|
I've changed the wording of the comment arround a bit, in part to make it more clear than returning null is something the compiler tries to do if it can't return a useful value for some reason, but doesn't guarantee. I've also added a cranelift impl. I'll figure out gcc/miri in a future PR. @rustbot ready |
|
r=me with commits squashed r? me |
11bfbbc to
d6da4ea
Compare
This comment has been minimized.
This comment has been minimized.
* Implement core::arch::return_address and tests Fix typo Apply suggestions from code review Wording/docs changes. Co-authored-by: Ralf Jung <post@ralfj.de> Change signature according to Ralf's comment Fix call to `core::intrinsics::return_address()` according to the new signature Add cranelift implementation for intrinsic Change wording on `return_address!()` to be clear that returning a null pointer is best-effort. Fix formatting of doc comment Fix mistake in cranelift codegen * Do not generate llvm.returnaddress on wasm * Supress return_address test on miri
|
🔨 3 commits were squashed into 4b5d544. |
ca052d0 to
4b5d544
Compare
|
@bors r+ |
…-Simulacrum Implement `core::arch::return_address` and tests Tracking issue: rust-lang#154966 Implements libs-team#768
|
@bors r- |
|
This pull request was unapproved. This PR was contained in a rollup (#155824), which was unapproved. |
|
I don't think I can run try, so I'm just going to ready. @rustbot ready |
|
@bors try jobs=x86_64-gnu-aux |
This comment has been minimized.
This comment has been minimized.
Implement `core::arch::return_address` and tests try-job: x86_64-gnu-aux
|
💔 Test for 4c27a6c failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
|
@bors try jobs=x86_64-gnu-aux |
This comment has been minimized.
This comment has been minimized.
Implement `core::arch::return_address` and tests try-job: x86_64-gnu-aux
View all comments
Tracking issue: #154966
Implements libs-team#768